<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp" %>
<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>店铺身份信息管理</title>
    <meta name="decorator" content="default"/>
    <link href="${ctxStatic}/merchant/css/layui.css" rel="stylesheet" type="text/css">
    <link href="${ctxStatic}/merchant/css/index.css" rel="stylesheet" type="text/css">
    <link href="${ctxStatic}/merchant/css/register1.css" rel="stylesheet" type="text/css">
    <style>
        .Validform_checktip{margin-left:100px;}
        .artificial-info .Validform_checktip{margin-left:150px;}
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#managerName").focus();
            $("#inputForm").validate({
                submitHandler: function (form) {
                    loading('正在跳转，请稍等...');
                    form.submit();
                },
                errorContainer: "#messageBox",
                errorPlacement: function (error, element) {
                    $("#messageBox").text("输入有误，请先更正。");
                    if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
                        error.appendTo(element.parent().parent());
                    } else {
                        error.insertAfter(element);
                    }
                }
            });
        });
    </script>
</head>
<body>
<header>
    <div class="register-title">
        <span>商户入驻</span>
    </div>
</header>
<div class="content">
    <form:form id="inputForm" modelAttribute="hkEnterShopInfo" action="${ctx}/saveHkEnterShopInfo" method="post">
        <form:hidden path="id"/>
        <sys:message content="${message}"/>
        <div class="manager-info">
            <span class="title">店铺管理人基本信息<i class="warntitle">带*号为必填项</i></span>
            <div class="info">
                <div class="layui-form-item">
                    <label class="layui-form-label"><span style="color:red;">*</span>店铺管理人姓名：</label>
                    <div class="layui-input-block">
                        <form:input path="managerName" id="managerName" htmlEscape="false"
                                    style="height: 50px;border-radius: 4px;font-size: 16px;color: #333;"
                                    lay-verify="required" placeholder="请输入管理人姓名" autocomplete="off"
                                    class="layui-input" />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span style="color:red;">*</span>店铺管理人邮箱：</label>
                    <div class="layui-input-block">
                        <form:input path="managerEmail" htmlEscape="false" type="text"
                                    style="height: 50px;border-radius: 4px;font-size: 16px;color: #333;"
                                    lay-verify="required" placeholder="请输入常用邮箱，便于信息及时送达  " autocomplete="off"
                                    class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span style="color:red;">*</span>店铺管理人手机：</label>
                    <div class="layui-input-block">
                        <form:input path="managerMobile" htmlEscape="false" type="text"
                                    value='<%=request.getSession().getAttribute("loginName")%>'
                                    style="height: 50px;border-radius: 4px;font-size: 16px;color: #333;"
                                    lay-verify="required" placeholder="请输入手机号，后期可更改" readonly="true" autocomplete="off"
                                    class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span style="color:red;">*</span>店铺管理人身份证件人像面：</label>
                    <div class="layui-input-block">
                        <div class="photo">
                            <input type="hidden" id="cardPersonImgSrc" name="cardPersonImgSrc"/>
                            <sys:ckfinder input="cardPersonImgSrc" type="thumb" uploadPath="/shop/card"
                                          selectMultiple="false"/>
                        </div>
                        <div class="sfz"></div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span style="color:red;">*</span>店铺管理人身份证件国徽面：</label>
                    <div class="layui-input-block">
                        <div class="photo">
                            <input type="hidden" id="cardCountryImgSrc" name="cardCountryImgSrc"/>
                            <sys:ckfinder input="cardCountryImgSrc" type="thumb" uploadPath="/shop/card"
                                          selectMultiple="false"/>
                        </div>
                        <div class="sfz"></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="artificial-info">
            <span class="title">企业法定代表人基本信息</span>
            <div class="info">
                <div class="layui-form-item">
                    <label class="layui-form-label">法定代表人姓名：</label>
                    <div class="layui-input-block">
                        <form:input path="lagalPersonName" htmlEscape="false"
                                    style="height: 50px;border-radius: 4px;font-size: 16px;color: #333;"
                                    lay-verify="required" placeholder="请输入管理人姓名" autocomplete="off"
                                    class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">法定代表人手机号：</label>
                    <div class="layui-input-block">
                        <form:input path="legalPersonMobile" htmlEscape="false"
                                    style="height: 50px;border-radius: 4px;font-size: 16px;color: #333;"
                                    lay-verify="required" placeholder="请输入法定代表人手机号  " autocomplete="off"
                                    class="layui-input"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="next">
            <input id="btnSubmit" type="submit" value="下一步">
        </div>
    </form:form>
</div>
<footer class="foot">
		<span>
			Copyright 2017-2018 lexiaozhuan.com 版权所有 (京ICP证030173号
		</span>
    <img src="${ctxStatic}/merchant/images/shouye/ghs.png">
    <span>
			京公网安备11000002000001号)
		</span>
</footer>
</body>
<%--<script src="${ctxStatic}/merchant/js/jquery-3.3.1.min.js"></script>--%>
<script src="${ctxStatic}/merchant/js/layui.all.js"></script>
</html>